package org.example.springboot_demo1.test_calculators;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:38917
 * Date:2025/4/11
 * Time:00:41
 */

@RequestMapping("/Calculator")
@Controller
public class Test_Calculators {

    @ResponseBody
    @RequestMapping("/sum")
    public String sum(Integer num1, Integer num2) {
        return String.valueOf(num1 + num2);
    }
}
